<?php
/** Pflanze
 *
 */

$pflanzeData = Array();
if($entry['data']['reife']['raw'])
{ $pflanzeData[] = $entry['data']['reife'];}

if($entry['data']['wuchstyp']['raw'])
{ $pflanzeData[] = $entry['data']['wuchstyp'];}

if($entry['data']['wuchsform']['raw'])
{ $pflanzeData[] = $entry['data']['wuchsform'];}

if($entry['data']['bluehfarbe']['raw'])
{ $pflanzeData[] = $entry['data']['bluehfarbe'];}

if($entry['data']['jugendentwicklung']['raw'])
{ $pflanzeData[] = $entry['data']['jugendentwicklung'];}

if($entry['data']['knollenzahl']['raw'])
{ $pflanzeData[] = $entry['data']['knollenzahl'];}

if($entry['data']['keimruhe']['raw'])
{ $pflanzeData[] = $entry['data']['keimruhe'];}

$pflanzCount = count($pflanzeData);
$pflanze = generateRow($pflanzeData,$pflanzCount,$taxLabelssum);

/** Knolleneigenschaften
 *
*/
$knolleData = Array();
if($entry['data']['knollenform']['raw'])
{ $knolleData[] = $entry['data']['knollenform'];}

if($entry['data']['fleischfarbe']['raw'])
{ $knolleData[] = $entry['data']['fleischfarbe'];}

if($entry['data']['augentiefe']['raw'])
{ $knolleData[] = $entry['data']['augentiefe'];}

if($entry['data']['schalenfarbe']['raw'])
{ $knolleData[] = $entry['data']['schalenfarbe'];}

if($entry['data']['schalenbeschaffenheit']['raw'])
{ $knolleData[] = $entry['data']['schalenbeschaffenheit'];}

$knolleCount = count($knolleData);
$knolle = generateRow($knolleData,$knolleCount,$taxLabelssum);

/** Resistenzen
 *
*/
$resistanzData = Array();
if($entry['data']['nematoden']['raw'])
{ $resistanzData[] = $entry['data']['nematoden'];}

if($entry['data']['kartoffelkrebs']['raw'])
{ $resistanzData[] = $entry['data']['kartoffelkrebs'];}

if($entry['data']['krautfaeule']['raw'])
{ $resistanzData[] = $entry['data']['krautfaeule'];}

if($entry['data']['knollenfaeule']['raw'])
{ $resistanzData[] = $entry['data']['knollenfaeule'];}

if($entry['data']['rhizoctonia']['raw'])
{ $resistanzData[] = $entry['data']['rhizoctonia'];}

if($entry['data']['schwarzbeinigkeit']['raw'])
{ $resistanzData[] = $entry['data']['schwarzbeinigkeit'];}

if($entry['data']['schorf']['raw'])
{ $resistanzData[] = $entry['data']['schorf'];}

if($entry['data']['eisenfleckigkeit']['raw'])
{ $resistanzData[] = $entry['data']['eisenfleckigkeit'];}

if($entry['data']['zwiewuchs']['raw'])
{ $resistanzData[] = $entry['data']['zwiewuchs'];}

if($entry['data']['silberschorf']['raw'])
{ $resistanzData[] = $entry['data']['silberschorf'];}

if($entry['data']['schorf']['raw'])
{ $resistanzData[] = $entry['data']['schorf'];}

if($entry['data']['beschaedigungen']['raw'])
{ $resistanzData[] = $entry['data']['beschaedigungen'];}

if($entry['data']['schwarzfleckigkeit']['raw'])
{ $resistanzData[] = $entry['data']['schwarzfleckigkeit'];}

if($entry['data']['yvirus']['raw'])
{ $resistanzData[] = $entry['data']['yvirus'];}

if($entry['data']['yntn']['raw'])
{ $resistanzData[] = $entry['data']['yntn'];}

if($entry['data']['blattrollvirus']['raw'])
{ $resistanzData[] = $entry['data']['blattrollvirus'];}

$resistanzCount = count($resistanzData);
$resistanz = generateRow($resistanzData,$resistanzCount,$taxLabelssum);
 
/*
 * 	Ertrag und Qualitaet
*/
$ertragData = Array();
if($entry['data']['verwertungsrichtung']['raw'])
{ $ertragData[] = $entry['data']['verwertungsrichtung'];}

if($entry['data']['ertrag']['raw'])
{ $ertragData[] = $entry['data']['ertrag'];}

if($entry['data']['anteiluebergroessen']['raw'])
{ $ertragData[] = $entry['data']['anteiluebergroessen'];}

if($entry['data']['anteiluntergroessen']['raw'])
{ $ertragData[] = $entry['data']['anteiluntergroessen'];}

if($entry['data']['kochtyp']['raw'])
{ $ertragData[] = $entry['data']['kochtyp'];}

if($entry['data']['kochdunklung']['raw'])
{ $ertragData[] = $entry['data']['kochdunklung'];}

if($entry['data']['rohbreiverfaerbung']['raw'])
{ $ertragData[] = $entry['data']['rohbreiverfaerbung'];}

if($entry['data']['staerkegehalt']['raw'])
{ $ertragData[] = $entry['data']['staerkegehalt'];}

if($entry['data']['staerkeertrag']['raw'])
{ $ertragData[] = $entry['data']['staerkeertrag'];}

if($entry['data']['chipsqualitaetnachernte']['raw'])
{ $ertragData[] = $entry['data']['chipsqualitaetnachernte'];}

if($entry['data']['chipsqualitaetnachlangzeitlagerung']['raw'])
{ $ertragData[] = $entry['data']['chipsqualitaetnachlangzeitlagerung'];}

if($entry['data']['chipsqualitaetnachlangzeitlagerungbei4c']['raw'])
{ $ertragData[] = $entry['data']['chipsqualitaetnachlangzeitlagerungbei4c'];}

$ertragCount = count($ertragData);
$ertrag = generateRow($ertragData,$ertragCount,$taxLabelssum);
?>